package com.ks.app.admin.hibernate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * KsUser entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "KS_USER")
public class KsUser implements java.io.Serializable {
	
	private static final long serialVersionUID = 8615093245971250679L;

	// Fields
	private long ksUserId;//用户表主键ID
	private String username;//用户名称
	private String ksPwd;//密码 
	private String ksStatus;//状态  1：开放 2：关闭
	private String ksIdentify;//开通权限
	private String ksUserNo;//编号
	private String ksUserGroup;//用户组
	private String ksSpechielIdentify;//特别屏蔽权限
	private String ksCreateTime;//创建时间
	private String ksCuserName;//中文名称
	// Constructors
	/** default constructor */
	public KsUser() {
	}
	/** minimal constructor */
	public KsUser(long ksUserId) {
		this.ksUserId = ksUserId;
	}
	/** full constructor */
	public KsUser(long ksUserId, String username, String ksPwd,
			String ksStatus, String ksIdentify, String ksUserNo,
			String ksUserGroup, String ksSpechielIdentify,String ksCreateTime,String ksCuserName) {
		this.ksUserId = ksUserId;
		this.username = username;
		this.ksPwd = ksPwd;
		this.ksStatus = ksStatus;
		this.ksIdentify = ksIdentify;
		this.ksUserNo = ksUserNo;
		this.ksUserGroup = ksUserGroup;
		this.ksSpechielIdentify = ksSpechielIdentify;
		this.ksCreateTime=ksCreateTime;
		this.ksCuserName=ksCuserName;
	}

	// Property accessors
	@Id
	@SequenceGenerator(name = "sq_KsUser", sequenceName = "KS_USER_SEQ", allocationSize = 1,initialValue =0)
	@GeneratedValue(strategy = GenerationType.SEQUENCE,generator="sq_KsUser")
	@Column(name = "KS_USER_ID", unique = true, nullable = false, precision = 22, scale = 0)
	public long getKsUserId() {
		return this.ksUserId;
	}

	public void setKsUserId(long ksUserId) {
		this.ksUserId = ksUserId;
	}

	@Column(name = "USERNAME", length = 20)
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column(name = "KS_PWD", length = 20)
	public String getKsPwd() {
		return this.ksPwd;
	}

	public void setKsPwd(String ksPwd) {
		this.ksPwd = ksPwd;
	}

	@Column(name = "KS_STATUS", length = 20)
	public String getKsStatus() {
		return this.ksStatus;
	}

	public void setKsStatus(String ksStatus) {
		this.ksStatus = ksStatus;
	}

	@Column(name = "KS_IDENTIFY", length = 100)
	public String getKsIdentify() {
		return this.ksIdentify;
	}

	public void setKsIdentify(String ksIdentify) {
		this.ksIdentify = ksIdentify;
	}

	@Column(name = "KS_USER_NO", length = 20)
	public String getKsUserNo() {
		return this.ksUserNo;
	}

	public void setKsUserNo(String ksUserNo) {
		this.ksUserNo = ksUserNo;
	}

	@Column(name = "KS_USER_GROUP", length = 20)
	public String getKsUserGroup() {
		return this.ksUserGroup;
	}

	public void setKsUserGroup(String ksUserGroup) {
		this.ksUserGroup = ksUserGroup;
	}

	@Column(name = "KS_SPECHIEL_IDENTIFY", length = 200)
	public String getKsSpechielIdentify() {
		return this.ksSpechielIdentify;
	}

	public void setKsSpechielIdentify(String ksSpechielIdentify) {
		this.ksSpechielIdentify = ksSpechielIdentify;
	}
	@Column(name = "KS_CREATETIME", length = 20)
	public String getKsCreateTime() {
		return this.ksCreateTime;
	}

	public void setKsCreateTime(String KsCreateTime) {
		this.ksCreateTime = KsCreateTime;
	}
	@Column(name = "KS_CUSER_NAME", length = 20)
	public String getKsCuserName() {
		return this.ksCuserName;
	}

	public void setKsCuserName(String ksCuserName) {
		this.ksCuserName = ksCuserName;
	}
}